import axios from 'axios'

const service = axios.create()

// 请求拦截
service.interceptors.request.use((config)=>{

    return config
},(error)=>{
    return Promise.reject(error)
})

// 相应拦截
service.interceptors.response.use((response)=>{
    return response
},(error)=>{
    return Promise.reject(error)
})

export default service